package com.andy.blog.admin.dto;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by andy on 2023-05-02 9:58
 */
@Data
@ColumnWidth(20)
@ContentRowHeight(25)
@HeadRowHeight(26)
public class SysDictDataDTO implements Serializable {

    private static final long serialVersionUID = -563123147436081267L;

    /**
     * 字典编码
     */
    @ExcelProperty(value = "字典编码", index = 0)
    private Long id;

    /**
     * 字典排序
     */
    @ExcelProperty(value = "字典排序", index = 1)
    private Integer dictSort;

    /**
     * 字典标签
     */
    @ExcelProperty(value = "字典标签", index = 2)
    private String dictLabel;

    /**
     * 字典键值
     */
    @ExcelProperty(value = "字典键值", index = 3)
    private String dictValue;

    /**
     * 字典类型
     */
    @ExcelProperty(value = "字典类型", index = 4)
    private String dictType;

    /**
     * 样式属性（其他样式扩展）
     */
    @ExcelIgnore
    private String cssClass;

    /**
     * 表格回显样式
     */
    @ExcelIgnore
    private String listClass;

    /**
     * 是否默认（Y是 N否）
     */
    @ExcelProperty(value = "是否默认", index = 5)
    private String isDefault;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", index = 6)
    private String status;

    /**
     * 创建者
     */
    @ExcelIgnore
    private String createBy;

    /**
     * 创建时间
     */
    @ExcelIgnore
    private Date createTime;

    /**
     * 更新者
     */
    @ExcelIgnore
    private String updateBy;

    /**
     * 更新时间
     */
    @ExcelIgnore
    private Date updateTime;

    /**
     * 备注
     */
    @ExcelIgnore
    private String remark;
}
